package com.lechi.web.common.alarm;

public class SwitchOnOrOff extends AlarmRuleStrategy {

    private final int switchVal;

    public SwitchOnOrOff(int val) {
        this.switchVal = val;
    }

    @Override
    public boolean ifAlarm(Float monitorVal) {
        return this.switchVal == monitorVal;
    }

}
